package com.example.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.backend.entity.ShangJia;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShangJiaMapper extends BaseMapper<ShangJia> {
    /**
     * 通过用户id查询商家信息
     */
    @Select("select sjid from wm_sj where yhid = #{yhid}")
    ShangJia queryShangJiaByYhid(int yhid);
    /**
     * 查询部分商家id
     */
    @Select("select sjid from wm_sj limit #{limit}")
    List<Integer> queryShangJiaIdList(Integer limit);


}
